import { defineComponent, onMounted } from "vue";
import { useRouter } from "vue-router";
import style from "./index.module.less";
export default defineComponent({
  props: {
    text: {
      type: String,
      defalue: "15px",
    },
  },
  setup(props, {}) {
    const router = useRouter();
    const back = () => {
      router.back();
    };
    return () => (
      <div class={["font--t5 wt", style["back"]]}>
        {props.text}
        <div class={[style["click-back"]]} onClick={back}></div>
      </div>
    );
  },
});
